export default {
    state: {
      status: 0
    },
    mutations: {
      increase(state) {
        state.status++;
      },
      decrease(state) {
        state.status--;
      },
    },
    actions: {
      delayAdd(context) {
        setTimeout(function () {
          context.commit("increase");
        }, 2000);
      },
      delayDec(context) {
        setTimeout(() => {
          context.commit("decrease");
        }, 2000);
      },
    },
  };
  